package cn.zjj.service.impl;

import cn.zjj.domain.Order;
import cn.zjj.mapper.OrderMapper;
import cn.zjj.service.IOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional(readOnly = true,propagation = Propagation.SUPPORTS)
public class OrderServiceImpl implements IOrderService {
    @Autowired
    private OrderMapper orderMapper;


    @Transactional
    @Override
    public void insert(Order order){



        orderMapper.insert(order);
    }
}
